package part22_适配器模式.p01_类适配器模式;

/**
 * @ClassName: VoltageAdapter
 * @Author: AllenSun
 * @Date: 2020/3/10 0:05
 */
public class VoltageAdapter extends VoItage220V implements IVoltage5V {
    @Override
    public int output5V() {
        int srcV=output220V();
        int dstV=srcV/44;
        return dstV;
    }
}
